#include <iostream>
#include <vector>
using namespace std;

int main(void)
{
    vector<int> v;
    v.resize(8);
    v.clear();

    for (int i = 0; i < 4; i++)
    {
        v[i] = i;
    }
    printf("v size=%lu, capacity=%lu, 未修改size值\n", v.size(), v.capacity());

    v.resize(4);
    printf("v size=%lu, capacity=%lu, 修改size值\n", v.size(), v.capacity());

    return 0;
}